package com.qn.example;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan(basePackages = "com.qn.example.mapper")
//扫描过滤器组件
@ServletComponentScan(basePackages = "com.qn.example.filters")
@EnableTransactionManagement //开启事务管理
@EnableCaching
public class BootTakesApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootTakesApplication.class, args);
    }

}
